package club.yuyang.campus2mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("mall_user")
public class User implements Serializable {
    @TableId(value = "id", type= IdType.AUTO)
    private Long id;

    private String account;

    private String password;

    private String userName;

    private String telephone;

    private String sex;

    private String schoolId;

    private String authority;

    private String token;

    @DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableLogic
    private Integer isDel;

}
